function buyerLoadShoppingCart() {
    $.ajax({
        type: "GET",
        contentType: "application/json;charset=UTF-8",
        url: "/cart/shoppingCartJson",
        //数据，json字符串
        //data : JSON.stringify(list),
        //请求成功
        success: function (result) {
            trHTML = "";
            $.each(result, function(lineNumber, rowdata) {
                trHTML = trHTML +
                    "<tr><td>"+rowdata.foodID+
                    "</td><td>"+rowdata.foodname+
                    "</td><td>"+rowdata.foodprice+
                    "</td><td>"+rowdata.foodnumber+
                    "</td><td><a href='/cart/reducecartfood/"+rowdata.id+"'>减少</a>" +
                    "</td><td><a href='/cart/deletecartfood/"+rowdata.id+"'>删除</a>" +
                    "</td></tr>"
            });
            $('#buyerShoppingCart').append(trHTML);
        },
        //请求失败，包含具体的错误信息
        error: function (e) {
            console.log(e.status);
            console.log(e.responseText);
        }
    });
}